//
//  BacclistTableViewCell.m
//  Distributor
//
//  Created by 主事丫环 on 2019/5/15.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "BacclistTableViewCell.h"

@implementation BacclistTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)refash:(Bacclistmodel *)model{
    
//    if ([model.type integerValue] == 1) {
//        self.titllb.text =[NSString stringWithFormat:@"结算-微信(%@)",model.openid];
//    }else{
//        self.titllb.text =[NSString stringWithFormat:@"结算-支付宝(%@)",model.alipay_userid];
//    }
    
    if ([model.type integerValue] == 1) {
        self.titllb.text = @"结算-微信";
    }else{
        self.titllb.text = @"结算-支付宝";
    }
    
    if ([model.set_state integerValue] == 0) {
        self.stutrLB.text = @"审核中";
        self.stutrLB.textColor = [UIColor colorWithHexString:@"#999999"];
    }else if ([model.set_state integerValue] == 1) {
        self.stutrLB.text = @"已到账";
        self.stutrLB.textColor = [UIColor colorWithHexString:@"#CA9F61"];
    }
    
    self.moneyLb.text = [NSString stringWithFormat:@"-%@",model.set_money];
    self.timeLB.text = [NSString stringWithFormat:@"%@",model.pay_time];
    
  
}

@end
